package com.lagou.work02;

/**
 * 抽象套餐类
 */
public abstract class Code03AbstractPackage {
    //资费
    private int price;
    //数量
    private int phonePackage;

    //无参构造
    public Code03AbstractPackage() {
    }

    //初始化套餐
    public Code03AbstractPackage(int price, int phonePackage) {
        setPrice(price);
        setPhonePackage(phonePackage);
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getPhonePackage() {
        return phonePackage;
    }

    public void setPhonePackage(int phonePackage) {
        this.phonePackage = phonePackage;
    }

    //打印套餐信息
    public abstract void showInfo();
}
